import Vue from 'vue'
import App from './App.vue'

import 'element-ui/lib/theme-chalk/index.css'

import vcolorpicker from 'vcolorpicker'
import {
	Button,
	Form,
	FormItem,
	Input,
	Message,
	Container,
	Header,
	Aside,
	Main,
	Menu,
	Submenu,
	MenuItem,
	MenuItemGroup,
	Breadcrumb,
	BreadcrumbItem,
	Card,
	Col,
	Row,
	Table,
	TableColumn,
	Switch,
	Tooltip,
	Pagination,
	Dialog,
	MessageBox,
	Tag,
	Tree,
	Select,
	Option,
	Cascader,
	Alert,
	Tabs,
	TabPane,
	Step,
	Steps,
	Checkbox,
	Upload,
	Timeline,
	TimelineItem,
} from 'element-ui'
import axios from 'axios'
let axiosConfig = {
	baseURL: 'http://81.68.68.195:8888/',
	timeout: 10000,
}
const request = axios.create(axiosConfig)
Vue.prototype.$http = request
import { formDataFilter } from './utils/index.js'
Vue.prototype.$formDataFilter = formDataFilter
Vue.use(Button)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(Container)
Vue.use(Header)
Vue.use(Aside)
Vue.use(Main)
Vue.use(Menu)
Vue.use(Submenu)
Vue.use(MenuItem)
Vue.use(MenuItemGroup)
Vue.use(Breadcrumb)
Vue.use(BreadcrumbItem)
Vue.use(Card)
Vue.use(Col)
Vue.use(Row)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Switch)
Vue.use(Tooltip)
Vue.use(Pagination)
Vue.use(Dialog)
Vue.use(Tag)
Vue.use(Tree)
Vue.use(Select)
Vue.use(Option)
Vue.use(Cascader)
Vue.use(Alert)
Vue.use(Tabs)
Vue.use(TabPane)
Vue.use(Step)
Vue.use(Steps)
Vue.use(Checkbox)
Vue.use(Upload)
Vue.use(Timeline)
Vue.use(TimelineItem)
Vue.prototype.$message = Message
Vue.prototype.$confirm = MessageBox.confirm


Vue.use(vcolorpicker)
Vue.config.productionTip = false

new Vue({
	render: (h) => h(App),
}).$mount('#app')
